import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/global.css'
import axios from "axios";
import VueRouter from "vue-router";
import store from './store'
import VueParticles from 'vue-particles'
Vue.use(VueParticles)
Vue.use(VueRouter)
Vue.prototype.$axios=axios;
Vue.prototype.$httpUrl='http://43.139.181.2:9988';
Vue.config.productionTip = false
import md5 from 'js-md5';
Vue.prototype.$md5 = md5;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// axios.interceptors.request.use(
//     config => {
//       // 这里的config包含每次请求的内容，假设有一个token
//       const token = localStorage.getItem('token');
//       if (token) {
//         // 添加headers
//         config.headers.token = token;
//       }
//       return config
//     },
//     error => {
//       return Promise.reject(error)
//     }
// )